﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007AB RID: 1963
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPunkLordBattleRecordScRsp : IMessage<GetPunkLordBattleRecordScRsp>, IMessage, IEquatable<GetPunkLordBattleRecordScRsp>, IDeepCloneable<GetPunkLordBattleRecordScRsp>, IBufferMessage
	{
		// Token: 0x1700190A RID: 6410
		// (get) Token: 0x0600582D RID: 22573 RVA: 0x000EDE17 File Offset: 0x000EC017
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPunkLordBattleRecordScRsp> Parser
		{
			get
			{
				return GetPunkLordBattleRecordScRsp._parser;
			}
		}

		// Token: 0x1700190B RID: 6411
		// (get) Token: 0x0600582E RID: 22574 RVA: 0x000EDE1E File Offset: 0x000EC01E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPunkLordBattleRecordScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700190C RID: 6412
		// (get) Token: 0x0600582F RID: 22575 RVA: 0x000EDE30 File Offset: 0x000EC030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPunkLordBattleRecordScRsp.Descriptor;
			}
		}

		// Token: 0x06005830 RID: 22576 RVA: 0x000EDE37 File Offset: 0x000EC037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPunkLordBattleRecordScRsp()
		{
		}

		// Token: 0x06005831 RID: 22577 RVA: 0x000EDE58 File Offset: 0x000EC058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPunkLordBattleRecordScRsp(GetPunkLordBattleRecordScRsp other) : this()
		{
			this.aNAGKANMOBM_ = ((other.aNAGKANMOBM_ != null) ? other.aNAGKANMOBM_.Clone() : null);
			this.battleRecordList_ = other.battleRecordList_.Clone();
			this.retcode_ = other.retcode_;
			this.kHDICNCFIAP_ = other.kHDICNCFIAP_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005832 RID: 22578 RVA: 0x000EDEC6 File Offset: 0x000EC0C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPunkLordBattleRecordScRsp Clone()
		{
			return new GetPunkLordBattleRecordScRsp(this);
		}

		// Token: 0x1700190D RID: 6413
		// (get) Token: 0x06005833 RID: 22579 RVA: 0x000EDECE File Offset: 0x000EC0CE
		// (set) Token: 0x06005834 RID: 22580 RVA: 0x000EDED6 File Offset: 0x000EC0D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordMonsterKey ANAGKANMOBM
		{
			get
			{
				return this.aNAGKANMOBM_;
			}
			set
			{
				this.aNAGKANMOBM_ = value;
			}
		}

		// Token: 0x1700190E RID: 6414
		// (get) Token: 0x06005835 RID: 22581 RVA: 0x000EDEDF File Offset: 0x000EC0DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PunkLordBattleRecord> BattleRecordList
		{
			get
			{
				return this.battleRecordList_;
			}
		}

		// Token: 0x1700190F RID: 6415
		// (get) Token: 0x06005836 RID: 22582 RVA: 0x000EDEE7 File Offset: 0x000EC0E7
		// (set) Token: 0x06005837 RID: 22583 RVA: 0x000EDEEF File Offset: 0x000EC0EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001910 RID: 6416
		// (get) Token: 0x06005838 RID: 22584 RVA: 0x000EDEF8 File Offset: 0x000EC0F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PunkLordBattleReplay> KHDICNCFIAP
		{
			get
			{
				return this.kHDICNCFIAP_;
			}
		}

		// Token: 0x06005839 RID: 22585 RVA: 0x000EDF00 File Offset: 0x000EC100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPunkLordBattleRecordScRsp);
		}

		// Token: 0x0600583A RID: 22586 RVA: 0x000EDF10 File Offset: 0x000EC110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPunkLordBattleRecordScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.ANAGKANMOBM, other.ANAGKANMOBM) && this.battleRecordList_.Equals(other.battleRecordList_) && this.Retcode == other.Retcode && this.kHDICNCFIAP_.Equals(other.kHDICNCFIAP_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600583B RID: 22587 RVA: 0x000EDF88 File Offset: 0x000EC188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.aNAGKANMOBM_ != null)
			{
				num ^= this.ANAGKANMOBM.GetHashCode();
			}
			num ^= this.battleRecordList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.kHDICNCFIAP_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600583C RID: 22588 RVA: 0x000EDFF9 File Offset: 0x000EC1F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600583D RID: 22589 RVA: 0x000EE001 File Offset: 0x000EC201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600583E RID: 22590 RVA: 0x000EE00C File Offset: 0x000EC20C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.kHDICNCFIAP_.WriteTo(ref output, GetPunkLordBattleRecordScRsp._repeated_kHDICNCFIAP_codec);
			if (this.aNAGKANMOBM_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.ANAGKANMOBM);
			}
			this.battleRecordList_.WriteTo(ref output, GetPunkLordBattleRecordScRsp._repeated_battleRecordList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600583F RID: 22591 RVA: 0x000EE088 File Offset: 0x000EC288
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.aNAGKANMOBM_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ANAGKANMOBM);
			}
			num += this.battleRecordList_.CalculateSize(GetPunkLordBattleRecordScRsp._repeated_battleRecordList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.kHDICNCFIAP_.CalculateSize(GetPunkLordBattleRecordScRsp._repeated_kHDICNCFIAP_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005840 RID: 22592 RVA: 0x000EE104 File Offset: 0x000EC304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPunkLordBattleRecordScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.aNAGKANMOBM_ != null)
			{
				if (this.aNAGKANMOBM_ == null)
				{
					this.ANAGKANMOBM = new PunkLordMonsterKey();
				}
				this.ANAGKANMOBM.MergeFrom(other.ANAGKANMOBM);
			}
			this.battleRecordList_.Add(other.battleRecordList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.kHDICNCFIAP_.Add(other.kHDICNCFIAP_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005841 RID: 22593 RVA: 0x000EE18E File Offset: 0x000EC38E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005842 RID: 22594 RVA: 0x000EE198 File Offset: 0x000EC398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 10U)
					{
						this.kHDICNCFIAP_.AddEntriesFrom(ref input, GetPunkLordBattleRecordScRsp._repeated_kHDICNCFIAP_codec);
						continue;
					}
					if (num == 58U)
					{
						if (this.aNAGKANMOBM_ == null)
						{
							this.ANAGKANMOBM = new PunkLordMonsterKey();
						}
						input.ReadMessage(this.ANAGKANMOBM);
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						this.battleRecordList_.AddEntriesFrom(ref input, GetPunkLordBattleRecordScRsp._repeated_battleRecordList_codec);
						continue;
					}
					if (num == 72U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002261 RID: 8801
		private static readonly MessageParser<GetPunkLordBattleRecordScRsp> _parser = new MessageParser<GetPunkLordBattleRecordScRsp>(() => new GetPunkLordBattleRecordScRsp());

		// Token: 0x04002262 RID: 8802
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002263 RID: 8803
		public const int ANAGKANMOBMFieldNumber = 7;

		// Token: 0x04002264 RID: 8804
		private PunkLordMonsterKey aNAGKANMOBM_;

		// Token: 0x04002265 RID: 8805
		public const int BattleRecordListFieldNumber = 8;

		// Token: 0x04002266 RID: 8806
		private static readonly FieldCodec<PunkLordBattleRecord> _repeated_battleRecordList_codec = FieldCodec.ForMessage<PunkLordBattleRecord>(66U, PunkLordBattleRecord.Parser);

		// Token: 0x04002267 RID: 8807
		private readonly RepeatedField<PunkLordBattleRecord> battleRecordList_ = new RepeatedField<PunkLordBattleRecord>();

		// Token: 0x04002268 RID: 8808
		public const int RetcodeFieldNumber = 9;

		// Token: 0x04002269 RID: 8809
		private uint retcode_;

		// Token: 0x0400226A RID: 8810
		public const int KHDICNCFIAPFieldNumber = 1;

		// Token: 0x0400226B RID: 8811
		private static readonly FieldCodec<PunkLordBattleReplay> _repeated_kHDICNCFIAP_codec = FieldCodec.ForMessage<PunkLordBattleReplay>(10U, PunkLordBattleReplay.Parser);

		// Token: 0x0400226C RID: 8812
		private readonly RepeatedField<PunkLordBattleReplay> kHDICNCFIAP_ = new RepeatedField<PunkLordBattleReplay>();
	}
}
